package com.dayou.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.dayou.bean.TypeInfo;
import com.dayou.service.ITypeInfoService;
import com.dayou.common.core.controller.BaseController;
import com.dayou.common.core.page.TableDataInfo;
import com.dayou.common.core.domain.AjaxResult;
import com.dayou.common.utils.poi.ExcelUtil;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * 人员类型 信息操作处理
 * 
 * @author dayou
 * @date 2020-04-30
 */
@RestController
@RequestMapping("/typeInfo")
public class TypeInfoController extends BaseController
{
	@Autowired
	private ITypeInfoService typeInfoService;
				
    /**
	 * 查询所有人员类型列表
	 */
	@PostMapping("/listAll")
	@ResponseBody
	public TableDataInfo listAll(TypeInfo typeInfo)
	{
		startPage();
        List<TypeInfo> list = typeInfoService.selectTypeInfoList(typeInfo);
		return getDataTable(list);
	}

}
